import { lazy } from 'react';
import { UserCircleIcon } from 'tdesign-icons-react';
import { IRouter } from '../index';

const result: IRouter[] = [
  {
    path: '/user',
    meta: {
      title: '用户管理',
      icon: 'user',
    },
    children: [
      {
        path: 'index',
        Component: lazy(() => import('pages/user/baseInfo')),
        meta: {
          title: '基本信息',
        },
      },
      {
        path: 'packageInfo',
        Component: lazy(() => import('pages/user/packageInfo')),
        meta: {
          title: '套餐信息',
        },
      },
      {
        path: 'InvitationRecord',
        Component: lazy(() => import('pages/user/InvitationRecord')),
        meta: {
          title: '邀请记录',
        },

      },
      {
        path: 'invite-users/:id',
        Component: lazy(() => import('pages/user/InvitationRecord/InviteUsers')),
        meta: {
          title: '邀请用户',
          hidden: true,
        },
      },
      {
        path: 'refund-order/:id',
        Component: lazy(() => import('pages/user/InvitationRecord/RefundOrder')),
        meta: {
          title: '返利订单',
          hidden: true,
        },
      },
      {
        path: 'Loginlog',
        Component: lazy(() => import('pages/user/Loginlog')),
        meta: {
          title: '登录日志',
        },
      },
    ],
  },
];

export default result;